import {customeStruct} from '../utils';
const itf = customeStruct.interface;
export const ListData = itf({
    payload: itf({
        content: [itf(Object.assign({
            id: 'string',
            code: 'string',
            name: 'string',
            shortCode: 'string? | null',
            shortName: 'string? | null',
            kind: 'number? | null',
            marketDepartmentCode: 'string? | null',
            country: 'string? | null',
            province: 'string? | null',
            city: 'string? | null',
            contactNumber: 'string? | null',
            address: 'string? | null',
        }))],
        totalElements: 'number',
    })
});
export const Detail = itf({
    payload: itf(Object.assign({
        id: 'string',
        code: 'string',
        name: 'string',
        shortCode: 'string? | null',
        shortName: 'string? | null',
        kind: 'number? | null',
        areaTiledId: 'string? | null',
        countryId: 'string? | null',
        countryName: 'string? | null',
        provinceId: 'string? | null',
        provinceName: 'string? | null',
        cityId: 'string? | null',
        cityName: 'string? | null',
        contactNumber: 'string? | null',
        fax: 'string? | null',
        email: 'string? | null',
        address: 'string? | null',
        zipCode: 'string? | null',
        juridicalPerson: 'string? | null',
        juridicalPersonPhone: 'string? | null',
        juridicalPersonEmail: 'string? | null',
        generalManager: 'string? | null',
        generalManagerPhone: 'string? | null',
        generalManagerEmail: 'string? | null',
        salesDirector: 'string? | null',
        salesDirectorPhone: 'string? | null',
        salesDirectorEmail: 'string? | null',
        serviceDirector: 'string? | null',
        serviceDirectorPhone: 'string? | null',
        serviceDirectorEmail: 'string? | null',
        marketDirector: 'string? | null',
        marketDirectorPhone: 'string? | null',
        marketDirectorEmail: 'string? | null',
        financialController: 'string? | null',
        financialControllerPhone: 'string? | null',
        financialControllerEmail: 'string? | null',
        salesInterfacePerson: 'string? | null',
        salesInterfacePhone: 'string? | null',
        salesInterfaceEmail: 'string? | null',
        serviceInterfacePerson: 'string? | null',
        serviceInterfacePhone: 'string? | null',
        serviceInterfaceEmail: 'string? | null',
        incorporatedDate: 'datetime? | null',
        startTime: 'datetime? | null',
        authorisedMethod: 'number? | null',
        authorisedArea: 'string? | null',
        arrivedAddress: 'string? | null',
        openDate: 'datetime? | null',
        onlineStatus: 'number? | null',
        updatedDate: 'datetime? | null',
        personnels: [
            {
                id: 'string',
                userName: 'string',
                name: 'string'
            }
        ],
        dealers: [
            {
                id: 'string',
                code: 'string',
                name: 'string',
                shortCode: 'string? | null',
                shortName: 'string? | null',
                countryName: 'string? | null',
                provinceName: 'string? | null',
                cityName: 'string? | null',
                address: 'string? | null'
            }
        ],
    }))
});
